QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

INCLUDEPATH=$$PWD/include
INCLUDEPATH+=$$PWD/include/git2
INCLUDEPATH+=$$PWD/include/git2/sys
#2015-Debug
#LIBS=$$PWD/git2-2015/64/Debug/git2.lib
#2015-Release
#LIBS=$$PWD/git2-2015/64/Release/git2.lib

#2017-Debug
#LIBS=$$PWD/git2-2017/64/Debug/git2.lib
#2017-Release
LIBS=$$PWD/git2-2017/64/Release/git2.lib
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    libgit2_add.cpp \
    libgit2_branch.cpp \
    libgit2_clone.cpp \
    libgit2_commit.cpp \
    libgit2_commit_dlg.cpp \
    libgit2_diff.cpp \
    libgit2_fetch_pull.cpp \
    libgit2_init.cpp \
    libgit2_merge.cpp \
    libgit2_push.cpp \
    libgit2_rebase.cpp \
    libgit2_remote.cpp \
    libgit2_status.cpp \
    libgit2_tag.cpp \
    main.cpp \
    MainWindow.cpp

HEADERS += \
    MainWindow.h \
    libgit2_add.h \
    libgit2_branch.h \
    libgit2_clone.h \
    libgit2_commit.h \
    libgit2_commit_dlg.h \
    libgit2_diff.h \
    libgit2_fetch_pull.h \
    libgit2_init.h \
    libgit2_merge.h \
    libgit2_push.h \
    libgit2_rebase.h \
    libgit2_remote.h \
    libgit2_status.h \
    libgit2_tag.h

FORMS += \
    MainWindow.ui \
    libgit2_commit_dlg.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
DEFINES= __STDC_LIMIT_MACROS


DEFINES -= UNICODE
DEFINES += UMBCS
QMAKE_CXXFLAGS -= -Zc:strictStrings

RESOURCES += \
    res.qrc
